AC_INIT(giocommander, 0.1)

AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
AM_CONFIG_HEADER(config.h)
AM_MAINTAINER_MODE

AC_ISC_POSIX
AC_PROG_CC

AC_PATH_PROG(GTKAMLC, gtkamlc, gtkamlc)
VALAC=$GTKAMLC
AC_SUBST(GTKAMLC)
AC_SUBST(VALAC)

PKG_CHECK_MODULES([GTK], gtk+-2.0)
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)

PKG_CHECK_MODULES([GIO], gio-2.0)
AC_SUBST(GIO_CFLAGS)
AC_SUBST(GIO_LIBS)

PKG_CHECK_MODULES([GEE], gee-1.0 >= 0.1.1)
AC_SUBST(GEE_CFLAGS)
AC_SUBST(GEE_LIBS)

AC_CONFIG_FILES([
Makefile
src/Makefile
])

AC_OUTPUT
